package com.fs.ssm004.pojo;

import java.util.Objects;

public class Course {
    private int c_id;
    private String name;
    private int t_id;
    private String classname;
    private int deleted;

    @Override
    public String toString() {
        return "Course{" +
                "c_id=" + c_id +
                ", name='" + name + '\'' +
                ", t_id=" + t_id +
                ", classname='" + classname + '\'' +
                ", deleted=" + deleted +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Course course = (Course) o;
        return c_id == course.c_id &&
                t_id == course.t_id &&
                deleted == course.deleted &&
                Objects.equals(name, course.name) &&
                Objects.equals(classname, course.classname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(c_id, name, t_id, classname, deleted);
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public int getC_id() {
        return c_id;
    }

    public void setC_id(int c_id) {
        this.c_id = c_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getT_id() {
        return t_id;
    }

    public void setT_id(int t_id) {
        this.t_id = t_id;
    }
}
